<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改发货单')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-exchange-edit" th:object="${billExchange}">
            <input name="exchangeId" th:field="*{exchangeId}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">订单ID 关联order.id：</label>
                <div class="col-sm-8">
                    <input name="orderId" th:field="*{orderId}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">用户id 关联user.id：</label>
                <div class="col-sm-8">
                    <input name="userId" th:field="*{userId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">卖家家确认收货时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="sellerConfirmTime" th:value="${#dates.format(billExchange.sellerConfirmTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">买家确认收货时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="buyConfirmTime" th:value="${#dates.format(billExchange.buyConfirmTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">状态：1 待换货  2买家已发货  3卖家已收货  4 卖家处理换货中   5卖家已发货中  6买家已收货 7换货成功：</label>
                <div class="col-sm-8">
                    <div class="radio-box">
                        <input type="radio" name="status" value="">
                        <label th:for="status" th:text="未知"></label>
                    </div>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">买家备注：</label>
                <div class="col-sm-8">
                    <input name="buyMemo" th:field="*{buyMemo}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">卖家备注：</label>
                <div class="col-sm-8">
                    <input name="sellerMemo" th:field="*{sellerMemo}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">申请时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="ctime" th:value="${#dates.format(billExchange.ctime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">更新时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="utime" th:value="${#dates.format(billExchange.utime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">所属店铺：</label>
                <div class="col-sm-8">
                    <input name="storeId" th:field="*{storeId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">卖家收货地址表id：</label>
                <div class="col-sm-8">
                    <input name="companyAddressId" th:field="*{companyAddressId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">收货地区ID：</label>
                <div class="col-sm-8">
                    <input name="sellerShipAreaId" th:field="*{sellerShipAreaId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">收货详细地址：</label>
                <div class="col-sm-8">
                    <input name="sellerShipAddress" th:field="*{sellerShipAddress}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">收货人姓名：</label>
                <div class="col-sm-8">
                    <input name="sellerShipName" th:field="*{sellerShipName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">收货电话：</label>
                <div class="col-sm-8">
                    <input name="sellerShipMobile" th:field="*{sellerShipMobile}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">收货地区ID：</label>
                <div class="col-sm-8">
                    <input name="buyShipAreaId" th:field="*{buyShipAreaId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">收货详细地址：</label>
                <div class="col-sm-8">
                    <input name="buyShipAddress" th:field="*{buyShipAddress}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">收货人姓名：</label>
                <div class="col-sm-8">
                    <input name="buyShipName" th:field="*{buyShipName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">收货电话：</label>
                <div class="col-sm-8">
                    <input name="buyShipMobile" th:field="*{buyShipMobile}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">物流公司编码：</label>
                <div class="col-sm-8">
                    <input name="buyLogiCode" th:field="*{buyLogiCode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">物流单号：</label>
                <div class="col-sm-8">
                    <input name="buyLogiNo" th:field="*{buyLogiNo}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">快递物流信息：</label>
                <div class="col-sm-8">
                    <input name="buyLogiInformation" th:field="*{buyLogiInformation}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">0快递信息可能更新  1快递信息不更新了：</label>
                <div class="col-sm-8">
                    <div class="radio-box">
                        <input type="radio" name="buyLogiStatus" value="" required>
                        <label th:for="buyLogiStatus" th:text="未知"></label>
                    </div>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">物流公司编码：</label>
                <div class="col-sm-8">
                    <input name="sellerLogiCode" th:field="*{sellerLogiCode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">物流单号：</label>
                <div class="col-sm-8">
                    <input name="sellerLogiNo" th:field="*{sellerLogiNo}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">快递物流信息：</label>
                <div class="col-sm-8">
                    <input name="sellerLogiInformation" th:field="*{sellerLogiInformation}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">0快递信息可能更新  1快递信息不更新了：</label>
                <div class="col-sm-8">
                    <div class="radio-box">
                        <input type="radio" name="sellerLogiStatus" value="" required>
                        <label th:for="sellerLogiStatus" th:text="未知"></label>
                    </div>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">0快递信息可能更新  1快递信息不更新了：</label>
                <div class="col-sm-8">
                    <input name="aftersalesId" th:field="*{aftersalesId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">物流公司名字：</label>
                <div class="col-sm-8">
                    <input name="sellerLogiName" th:field="*{sellerLogiName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">物流公司名字：</label>
                <div class="col-sm-8">
                    <input name="buyLogiName" th:field="*{buyLogiName}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script type="text/javascript">
        var prefix = ctx + "bill/exchange";
        $("#form-exchange-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-exchange-edit').serialize());
            }
        }

        $("input[name='sellerConfirmTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='buyConfirmTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='ctime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='utime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>